package io;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

import files.Library;

public class Configuration {
	
	public static void saveProfile() {
		
	}

	public static void save(Library lib) {
		PrintWriter pw = null;
		try {
			File file = new File("jkdb.cfg");
			FileWriter fw = new FileWriter(file, true);
			pw = new PrintWriter(fw);
			pw.println(lib.getBrowsingTime());
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			if (pw != null)
				pw.close();
		}
	}
	
}
